//
//  GRAllBillAction.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/7/27.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRAllBillAction.h"

@implementation GRAllBillAction
-(void)getYearBill:(NSInteger)year CompleteBlock:(RequestBlock)completeBlock{
    NSString * url = [NSString stringWithFormat:@"%@stagesBill/v1/yearBill",GRiceAPI];
    [RequestManager MembershipRequestWithURLString:url Method:GR_GET Paramers:@{@"year":@(year)} completionHandler:completeBlock];
}
-(void)getMonthBill:(NSString *)month CompleteBlock:(RequestBlock)completeBlock{
    NSString  * url = [NSString stringWithFormat:@"%@stagesBill/v1/monthBill",GRiceAPI];
        [RequestManager MembershipRequestWithURLString:url Method:GR_GET Paramers:@{@"month":month} completionHandler:completeBlock];
    
}
+(void)applyPay:(NSDictionary *)dic CompleteBlock:(RequestBlock)completeBlock{
    NSString  * url = [NSString stringWithFormat:@"%@stagesPay/v1/applyPay",GRiceAPI];
    [RequestManager MembershipRequestWithURLString:url Method:GR_POST Paramers:dic completionHandler:completeBlock];
}

@end
